﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;

namespace CRM.Models.SocialMarketing
{
    [Comment("社交营销操作记录表")]
    public class SocialMarketingTaskOperationLog : BaseModel
    {
        public int Id { get; set; }
        public int SocialMarketingTaskId { get; set; }
        public SocialMarketingTask SocialMarketingTask { get; set; }

        [Comment("系统操作类型")] public OperationTypes OperationType { get; set; }

        public enum OperationTypes
        {
            [Description("添加任务")] AddTasks,
            [Description("编辑任务")] EditTasks,
            [Description("发布任务")] PublishTasks,
            [Description("移至回收站")] SoftDeleteTasks,
            [Description("恢复任务")] RestoreTasks,
            [Description("删除任务")] DeleteTasks,
        }

        [Comment("操作说明"), MaxLength(255)] public string Name { get; set; }

        [Comment("操作备注,客户自定义"), MaxLength(255)]
        public string Remark { get; set; }

        public int UserId { get; set; }
        public int GroupId { get; set; }
        public int CompanyId { get; set; }
        public int OemId { get; set; }
    }
}